/*
 * @Author: moeWang
 * @Date: 2022-03-02 15:50:27
 * @LastEditTime: 2022-03-03 10:39:59
 * @LastEditors: moeWang
 * @Description:
 * @FilePath: \nest-web\src\logical\auth\loginAccount.model.ts
 */

import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';

export class loginAccountModel {
  @ApiProperty({ description: '用户名', example: 'admin' })
  @IsNotEmpty({ message: '用户名不能为空' })
  readonly account: string;
  @ApiProperty({ description: '密码', example: '123456' })
  @IsNotEmpty({ message: '密码不能为空' })
  readonly passwd: string;
}
